<form id="contactForm">
    <input name="id" type="hidden" th:value="${contact?.id}">
    <div class="form-group row">
        <label for="companyName" class="col-sm-2 col-form-label">公司名称</label>
        <div class="col-sm-10">
            <input type="text" th:value="${contact?.companyName}" name="companyName" class="form-control" id="companyName"
                   placeholder="请填写公司名称" required>
            <div class="invalid-feedback">请填写公司名称</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="contacts" class="col-sm-2 col-form-label">联系人</label>
        <div class="col-sm-10">
            <input type="text" th:value="${contact?.contacts}" name="contacts" class="form-control" id="contacts"
                   placeholder="请填写联系人" required>
            <div class="invalid-feedback">请填写联系人</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="fixedTelephone" class="col-sm-2 col-form-label">固定电话</label>
        <div class="col-sm-10">
            <input type="text" th:value="${contact?.fixedTelephone}" name="fixedTelephone" class="form-control"
                   id="fixedTelephone"
                   placeholder="请填写固定电话" required>
            <div class="invalid-feedback">请填写固定电话</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="phoneNumber" class="col-sm-2 col-form-label">移动电话</label>
        <div class="col-sm-10">
            <input type="text" th:value="${contact?.phoneNumber}" name="phoneNumber" class="form-control"
                   id="phoneNumber" placeholder="请填写移动电话" required>
            <div class="invalid-feedback">请填写移动电话</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="mailbox" class="col-sm-2 col-form-label">邮箱</label>
        <div class="col-sm-10">
            <input type="text" th:value="${contact?.mailbox}" name="mailbox" class="form-control"
                   id="mailbox"
                   placeholder="请填写邮箱" required>
            <div class="invalid-feedback">请填写邮箱</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="mailbox" class="col-sm-2 col-form-label">公司地址</label>
        <div class="col-sm-10">
            <input type="text" th:value="${contact?.address}" name="address" class="form-control"
                   placeholder="请填写公司地址" required>
            <div class="invalid-feedback">请填写公司地址</div>
        </div>
    </div>
</form>